package com.hp.modules.sys.dto;

import com.hp.common.base.YesNoEnum;
import com.hp.common.validator.Groups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author:mcfan
 * @description:部门参数
 * @date: create in 13:40 2021/4/2
 */
@ApiModel(description = "部门")
public class SysDeptParam {

    @ApiModelProperty(value = "主键-更新时必填")
    @NotNull(message = "主键不能为空",groups = {Groups.Update.class})
    private Long id;
    @ApiModelProperty(value = "父级id",required = false)
    private Long parentId;
    @ApiModelProperty(value = "机构编码",required = true)
    @NotBlank(message = "机构编码不能为空",groups = {Groups.Save.class,Groups.Update.class})
    private String name;
    @ApiModelProperty(value = "机构编码",required = false)
    private String code;
    @ApiModelProperty(value = "排序",required = false)
    private Double sort;
    @ApiModelProperty(value = "联系人",required = false)
    private String contacts;
    @ApiModelProperty(value = "联系人电话号码",required = false)
    private String mobilePhone;
    @ApiModelProperty(value = "电话",required = false)
    private String telephone;
    @ApiModelProperty(value = "邮箱",required = false)
    private String email;
    @ApiModelProperty(value = "地址",required = false)
    private String address;
    @ApiModelProperty(value = "是否启用(1->禁用|NO,2->启用|YES)",required = false)
    private YesNoEnum isEnabled;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Double getSort() {
        return sort;
    }

    public void setSort(Double sort) {
        this.sort = sort;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public YesNoEnum getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(YesNoEnum isEnabled) {
        this.isEnabled = isEnabled;
    }
}
